<%--
  Created by IntelliJ IDEA.
  User: hjb
  Time: 下午 11:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>adduser</title>
    <%@include file="/pages/common/head.jsp"%>
    <link type="text/css" rel="stylesheet" href="static/css/style.css" >
</head>
<body>
<div id="main">
    <form action="userServlet" method="get">
        <input type="hidden" name="pageNo" value="${param.pageNo}">
        <input type="hidden" name="action" value="${ empty param.id ? "add" : "update" }" />
        <input type="hidden" name="id" value="${ requestScope.user.id }" />
        <table>
            <tr>
                <td>用户名</td>
                <td>密码</td>
                <td>地址</td>
                <td>邮箱</td>
                <td>电话</td>
                <td>身份</td>
                <td colspan="2">操作</td>
            </tr>
            <tr>
                <td><input name="username" type="text" value="${requestScope.user.username}"/></td>
                <td><input name="password" type="text" value="${requestScope.user.password}"/></td>
                <td><input name="address" type="text" value="${requestScope.user.address}"/></td>
                <td><input name="email" type="text" value="${requestScope.user.email}"/></td>
                <td><input name="phone" type="text" value="${requestScope.user.phone}"/></td>
                <td><input name="identity" type="text" value="${requestScope.user.identity}"/></td>
                <td><input type="submit" value="提交"/></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
